<div class="pictures" style="<?=(!$HomePage) ?'margin:0':''?>">
   <div class="pictures_head">
      <p>Hình ảnh</p>
   </div>
   <div class="pictures_main">
      <ul>
      <?
         $pictures = pictures();
         foreach($pictures as $row){
      ?>
          <li><a class="fancybox" href="<?=pictures_img.$row['pic_picture']?>" rel="gallery1" ><img alt="" src="<?=pictures_img."small_".$row['pic_picture']?>" /></a></li>
      <? } ?>
      </ul>
   </div>
</div><!-- End pictures -->
<script>
$(document).ready(function() {
	$(".fancybox").fancybox({
		openEffect	: 'none',
		closeEffect	: 'none'
	});
});
</script>